/*
 * File Name:               DemoListCellView.cs
 *
 * Description:             普通类
 * Author:                  lisiyu <576603306@qq.com>
 * Create Date:             2016/11/24
 */

using UnityEngine.UI;

public class DemoListCellView : UIView
{
    private Text mTxtContent;

    protected override void onCacheComponents()
    {
        mTxtContent = getComponent<Text>(0);
    }

    protected override void onClearComponents()
    {
        mTxtContent = null;
    }

    protected override void onAddListeners()
    {
    }

    protected override void onRemoveListeners()
    {
    }

    public struct Argument
    {
        public string content;
    }

    protected override void onOpen(object args)
    {
        var arg = (Argument)args;
        mTxtContent.text = arg.content; // args[0].ToString();
    }

    protected override void onClose()
    {
    }
}